package com.atwisdom.star.core.dsl.event;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@Data
public class EventVariableDel {
    public EventVariableDel(){}
    public EventVariableDel(Map<String,Object> params){
        this.params=params;
    }
    private Map<String,Object> params;

    public Object getPath(String path) {
           return this.params.get(path);
    }

    public void saveTo(String key,Object value){
        this.params.put(key,value);
    }
}
